package lysjmaster.base.auth.repository;


import lysjmaster.base.auth.domain.RolePermission;
import lysjmaster.base.common.spring.base.BaseRepository;

import java.util.List;

/**
 * @author zk
 * @description 角色权限关联表数据处理层
 * @create 2018-07-25 15:51:38
 **/
public interface RolePermissionRepository extends BaseRepository<RolePermission> {

    List<RolePermission> findByRoleId(String roleId);

    List<RolePermission> findByRoleIdIn(Iterable<String> roleId);

    List<RolePermission> findByPermissionIdIn(Iterable<String> permissionIds);

    void deleteByRoleId(String id);


    void deleteByPermissionIdIn(Iterable<String> id);
}